package com.example.bookmanagementsystem.mapper;

import com.example.bookmanagementsystem.entity.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserInfoMapper {
    /**
     * 根据用户名称查询用户信息
     *
     * @param name
     * @return
     */
    @Select("select * from user_info where delete_flag = 0 and user_name = #{name}")
    UserInfo queryUserByName(String name);
}
